package com.meituan.sdk.model.wmoperNg.food.toppingGroupBatchInit;

import java.util.List;
import javax.validation.constraints.NotBlank;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotEmpty;

/**
* <p data-diff-id="ct-diff-id-da47888b-6b2e-40ee-a765-ec310b59b420">小料组，一次最多100</p><p data-diff-id="ct-diff-id-fafe2c32-51ca-4ce8-8e8a-328f0df0ada4"><span style="color: rgb(245, 34, 45)">注意：可能会部分成功部分失败。</span></p>
* This file was automatically generated.
*/
public class OpenToppingGroup {
    /**
    * <p data-diff-id="ct-diff-id-a80cf534-e5aa-41c9-92ce-67ac14a52802">小料组code</p>
    */
    @NotBlank(message = "toppingGroupCode不能为空")
    @SerializedName("toppingGroupCode")
    private String toppingGroupCode;
    /**
    * <p data-diff-id="ct-diff-id-c2b4e8eb-e5af-4a54-93b3-795bd06fd888">小料组名称</p>
    */
    @NotBlank(message = "groupName不能为空")
    @SerializedName("groupName")
    private String groupName;
    /**
    * <p data-diff-id="ct-diff-id-e7796484-d7cb-497c-b88f-a57029ca7731">是否可重复选,该字段只能填写0， 1。0：不重复，1：重复</p>
    */
    @SerializedName("repeatSelect")
    private Integer repeatSelect;
    /**
    * <p data-diff-id="ct-diff-id-ac705cca-6cd0-4138-a59c-bd5f2b42a07e">最大可选数量。</p><p data-diff-id="ct-diff-id-34dea0d6-5c7d-4cd6-b46f-3d109bbc4473"><span style="color: #f5222d">小料必选：maxSelect、minSelect都得必传，并且minSelect=maxSelect。</span></p><p data-diff-id="ct-diff-id-87ed8d2a-5825-4c3a-b71d-d85b13844702"><span style="color: #f5222d">小料非必选：maxSelect必传，minSelect不要传（默认为0）</span></p>
    */
    @SerializedName("maxSelect")
    private Integer maxSelect;
    /**
    * <p data-diff-id="ct-diff-id-fb01b409-2cec-4b56-b490-39487349836b">是否可多选，该字段只能填写0， 1。0：不可多选，1：可多选</p>
    */
    @SerializedName("multiSelect")
    private Integer multiSelect;
    /**
    * <p data-diff-id="ct-diff-id-935f440e-18c2-4eea-9437-3624780bfe80">关联小料</p>
    */
    @NotEmpty(message = "toppings不能为空")
    @SerializedName("toppings")
    private List<OpenRelTopping> toppings;
    /**
    * <p data-diff-id="ct-diff-id-a6f6f3f7-492f-4170-a3f9-3122dd4f4c57">最小购买数量，默认为0。</p><p data-diff-id="ct-diff-id-73a2205f-9f32-4c02-878b-e1172367d135"><span style="color: rgb(245, 34, 45)">小料必选：maxSelect、minSelect都得必传，并且minSelect=maxSelect。</span></p><p data-diff-id="ct-diff-id-9adb804d-3d32-4687-8df0-d3931fbb5c0c"><span style="color: rgb(245, 34, 45)">小料非必选：maxSelect必传，minSelect不要传（默认为0）</span></p>
    */
    @SerializedName("minSelect")
    private Integer minSelect;
    /**
    * <p data-diff-id="ct-diff-id-632e6e7f-6b67-42b7-a02c-32c7bca6d9d7">是否必选，只能填0或1，0-非必选，1-必选，默认为0</p>
    */
    @SerializedName("mandatory")
    private Integer mandatory;

    public String getToppingGroupCode() {
        return toppingGroupCode;
    }
    public void setToppingGroupCode(String toppingGroupCode) {
        this.toppingGroupCode = toppingGroupCode;
    }
    public String getGroupName() {
        return groupName;
    }
    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }
    public Integer getRepeatSelect() {
        return repeatSelect;
    }
    public void setRepeatSelect(Integer repeatSelect) {
        this.repeatSelect = repeatSelect;
    }
    public Integer getMaxSelect() {
        return maxSelect;
    }
    public void setMaxSelect(Integer maxSelect) {
        this.maxSelect = maxSelect;
    }
    public Integer getMultiSelect() {
        return multiSelect;
    }
    public void setMultiSelect(Integer multiSelect) {
        this.multiSelect = multiSelect;
    }
    public List<OpenRelTopping> getToppings() {
        return toppings;
    }
    public void setToppings(List<OpenRelTopping> toppings) {
        this.toppings = toppings;
    }
    public Integer getMinSelect() {
        return minSelect;
    }
    public void setMinSelect(Integer minSelect) {
        this.minSelect = minSelect;
    }
    public Integer getMandatory() {
        return mandatory;
    }
    public void setMandatory(Integer mandatory) {
        this.mandatory = mandatory;
    }




    @Override
    public String toString() {
        return "OpenToppingGroup{" + "toppingGroupCode=" + toppingGroupCode + "," + "groupName=" + groupName + "," + "repeatSelect=" + repeatSelect + "," + "maxSelect=" + maxSelect + "," + "multiSelect=" + multiSelect + "," + "toppings=" + toppings + "," + "minSelect=" + minSelect + "," + "mandatory=" + mandatory + "}";
    }
}
